/**
 * Created by Administrator on 2017/6/11.
 */
var monsegoose=require('mongose');
var config=require('config');

//连接mongo
module.exports= function () {
    var db=monsegoose.connect(config.mongodb);

    require('../app/models/news.server.model');
    return db;
}